﻿<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<Comissoes.Models.OPERADORES>" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <%= ViewData["scripts"] %>
    <script type="text/javascript" src="../../Scripts/plugins/jquery-googlemaps/jquery.jmap-r72.js"></script>
    <script type="text/javascript" src="http://maps.google.com/maps?file=api&amp;v=2&amp;key=<%= System.Configuration.ConfigurationSettings.AppSettings["GoogleMapKey"] %>"></script>
    <!-- JS Custom -->
    <script type="text/javascript" src="../../Scripts/cadastros/pessoas.js"></script>
    <script type="text/javascript" src="../../Scripts/cadastros/operadores.js"></script>
    <script type="text/javascript" src="../../Scripts/cadastros/enderecos.js"></script>
</head>
<body>
    <div class="cabecalho ui-state-highlight">
        <span class="icolst" />
        <span class="txt">
            <%= Html.Encode("Detalhes do Operador") %>
        </span>
    </div>
    <fieldset class="container transparent">
        <label class="input80">
            <button type="button" class="documentcommand" onclick="New()">Novo</button>
        </label>
        <label class="input80">
            <button class="pencilcommand" type="button" onclick="loadOption('/Operadores/Edit/' + $('#ID_OPER').val())">Editar</button>
        </label>
        <label class="input80">
            <button class="listcommand" type="button" onclick="List('Operadores', true)">Retornar</button>
        </label>
    </fieldset>
    <fieldset class="container field580 border ui-widget-content ui-corner-all">
        <% Html.BeginForm("Edit", "Operadores", FormMethod.Post); %>
            <%= Html.HiddenFor(m => m.ID_OPER) %>
            <fieldset class="container field540 transparent">
                <%= Html.Label("for80", "Código:") %>
                <%= Html.Label("for100  ui-state-default", Html.Encode(Model.COD_OPER)) %>

                <%= Html.Label("for80 clear", "Perfil:") %>
                <%= Html.Label("for140  ui-state-default", Html.Encode(Model.PERFIS.DESC_PERF)) %>

                <%= Html.Label("for60", "Cadastro:") %>
                <%= Html.Label("for100 ui-state-default center", Html.Encode(string.Format("{0:dd/MM/yyyy}", Model.DATACAD_OPER))) %>
                
                <%= Html.Label("for40 right", "Ativo") %>
                <%= Html.LabelInput(Html.CheckBox("ATIVO_OPER", Model.ATIVO_OPER == "A", new { disabled = true }), "Check") %>

                <% Html.RenderAction("Details", "Pessoas", Model.PESSOAS); %>

                <fieldset class="also container field560 float">
                    <div class="Accordion">
	                    <h3><a href="#">Lojas</a></h3>
	                    <div>
	                        <table id="tLojas"></table>
                            <div id="pLojas"></div>
	                    </div>
                    </div>
                </fieldset>
            </fieldset>
        <% Html.EndForm(); %>
    </fieldset>
</body>
</html>